package com.cashmama.market.api.application.controller.user.response;

import com.cashmama.market.api.domain.vo.user.UserAccountVO;
import com.cashmama.market.api.domain.vo.user.UserInfoAccountVO;
import com.cashmama.market.api.infras.handler.ResponseData;

import java.util.List;

/**
 * @program: market-api
 * @description
 * @author: frank
 * @create: 2019-12-26 19:40
 **/
public class UserInfoVO implements ResponseData {

    private String mobile;
    private String realName;
    private String avatar;

    private List<UserAccountVO> loanOrderList;
    /**
     * 我的账户列表
     */
    private List<UserAccountVO> toolsList;

    public UserInfoVO(UserInfoAccountVO userInfoAccountVO) {
        this.mobile = userInfoAccountVO.getMobile();
        this.realName = userInfoAccountVO.getRealName();
        this.avatar = userInfoAccountVO.getAvatar();
        this.loanOrderList = userInfoAccountVO.getLoanOrderList();
        this.toolsList = userInfoAccountVO.getToolsList();
    }

    public String getMobile() {
        return mobile;
    }

    public UserInfoVO setMobile(String mobile) {
        this.mobile = mobile;
        return this;
    }

    public String getRealName() {
        return realName;
    }

    public UserInfoVO setRealName(String realName) {
        this.realName = realName;
        return this;
    }

    public String getAvatar() {
        return avatar;
    }

    public UserInfoVO setAvatar(String avatar) {
        this.avatar = avatar;
        return this;
    }

    public List<UserAccountVO> getLoanOrderList() {
        return loanOrderList;
    }

    public UserInfoVO setLoanOrderList(List<UserAccountVO> loanOrderList) {
        this.loanOrderList = loanOrderList;
        return this;
    }

    public List<UserAccountVO> getToolsList() {
        return toolsList;
    }

    public UserInfoVO setToolsList(List<UserAccountVO> toolsList) {
        this.toolsList = toolsList;
        return this;
    }
}
